package p270jp.pxv.android.viewholder;

import android.view.View;
import p134ei.AnalyticsScreenName;
import p184gi.AnalyticsParameter;
import p184gi.ClickEvent;
import p216hn.DefaultConstructorMarker;
import p270jp.pxv.android.R;
import p270jp.pxv.android.legacy.model.PixivNovel;
import p270jp.pxv.android.view.NewNovelItemView;
import p270jp.pxv.android.viewholder.NovelItemViewHolder;
import p325m0.MutabilityOwnership;
import p451qm.NeedsNovelItemDecoration;

/* compiled from: NewNovelItemViewHolder.kt */
/* renamed from: jp.pxv.android.viewholder.NewNovelItemViewHolder */
/* loaded from: classes2.dex */
public final class NewNovelItemViewHolder extends BaseViewHolder implements NeedsNovelItemDecoration {
    private final NewNovelItemView newNovelItemView;
    public static final Companion Companion = new Companion(null);
    public static final int $stable = 8;

    /* compiled from: NewNovelItemViewHolder.kt */
    /* renamed from: jp.pxv.android.viewholder.NewNovelItemViewHolder$Companion */
    /* loaded from: classes2.dex */
    public static final class Companion {
        private Companion() {
        }

        public /* synthetic */ Companion(DefaultConstructorMarker eVar) {
            this();
        }

        public static /* synthetic */ void getLayoutRes$annotations() {
        }

        public final int getLayoutRes() {
            return R.layout.view_holder_new_novel_item;
        }
    }

    /* JADX WARN: 'super' call moved to the top of the method (can break code semantics) */
    public NewNovelItemViewHolder(View view) {
        super(view);
        MutabilityOwnership.m3745m(view, "view");
        this.newNovelItemView = (NewNovelItemView) view;
    }

    public static final int getLayoutRes() {
        return Companion.getLayoutRes();
    }

    @Override // p270jp.pxv.android.viewholder.BaseViewHolder
    public void bind(Object obj) {
        MutabilityOwnership.m3745m(obj, "item");
        super.bind(obj);
        NovelItemViewHolder.NovelItem novelItem = (NovelItemViewHolder.NovelItem) obj;
        PixivNovel target = novelItem.getTarget();
        this.newNovelItemView.setIgnoreMuted(novelItem.getIgnoreIsMuted());
        NewNovelItemView newNovelItemView = this.newNovelItemView;
        MutabilityOwnership.m3746l(target, "novel");
        AnalyticsScreenName screenName = novelItem.getScreenName();
        Long screenId = novelItem.getScreenId();
        ClickEvent clickEvent = novelItem.getClickEvent();
        MutabilityOwnership.m3746l(clickEvent, "novelItem.clickEvent");
        ClickEvent viewMoreClickEvent = novelItem.getViewMoreClickEvent();
        MutabilityOwnership.m3746l(viewMoreClickEvent, "novelItem.viewMoreClickEvent");
        newNovelItemView.m4481f(target, null, screenName, screenId, clickEvent, viewMoreClickEvent, novelItem.getSeriesClickEvent());
        NewNovelItemView newNovelItemView2 = this.newNovelItemView;
        AnalyticsScreenName screenName2 = novelItem.getScreenName();
        MutabilityOwnership.m3746l(screenName2, "novelItem.screenName");
        newNovelItemView2.setAnalyticsParameter(new AnalyticsParameter(screenName2, null, 0));
    }
}
